﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Master.Master" Inherits="System.Web.Mvc.ViewPage<OnlineMovieTicket.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
  <table cellpadding="0" cellspacing="0"  class="pageBackGround">
                                    <tr><td height="10px"> <% using (Html.BeginForm()) { %></td></tr>
                                    <tr><td class="fontWhite">
                                        <table bgcolor="white">            
                                            <tr><td>                
                                                <table cellpadding="6" cellspacing="6" width="975px" class="pageBackGround">
                                                    <tr><td class="fontWhiteBold" colspan="3"><h2>User Management - Register New User</h2></td></tr>
                                                    <tr><td colspan="3"><%: Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %></td></tr>
                                                    <tr><td colspan="3"> Use the form below to create a new account. </td></tr>
                                                     <tr><td colspan="3">Passwords are required to be a minimum of <%: ViewData["PasswordLength"] %> characters in length.</td></tr>
                                                    <tr><td width="15%"> <%: Html.LabelFor(m => m.UserName) %></td><td width="1px">:</td><td>   <%: Html.TextBoxFor(m => m.UserName) %>
                                                                        <%: Html.ValidationMessageFor(m => m.UserName) %></td></tr>
                                                    <tr><td> <%: Html.LabelFor(m => m.Email) %></td><td width="1px">:</td><td> <%: Html.TextBoxFor(m => m.Email) %>
                                                                                                                               <%: Html.ValidationMessageFor(m => m.Email) %></td></tr>
                                                    <tr><td> <%: Html.LabelFor(m => m.Password) %></td><td width="1px">:</td><td> <%: Html.PasswordFor(m => m.Password) %>
                                                                                                                                    <%: Html.ValidationMessageFor(m => m.Password) %>
                                                                                                                                        </td></tr>
                                                    <tr><td><%: Html.LabelFor(m => m.ConfirmPassword) %></td><td width="1px">:</td><td><%: Html.PasswordFor(m => m.ConfirmPassword) %>
                                                                                                                                       <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %></td></tr>
                                                    <tr><td colspan="3"><input type="submit" value="Submit" class="btn" /></td></tr>
                                                    <tr><td colspan="3" height="10px"></td></tr>    
                                                     <tr><td colspan="3" height="10px"> <%= Html.ActionLink("Change Password", "changepassword")%></td></tr>                                               
                                                </table>            
                                            </td></tr>
                                        </table>    
                                    </td></tr>
                                    <tr><td height="10px"></td></tr>
                </table>    
    <% } %>
</asp:Content>
